package cn.ewan.cloud.tenant.data.router.core.common.util;

import cn.ewan.cloud.common.support.Log;
import cn.ewan.cloud.tenant.data.router.core.business.context.TenantContext;

/**
 * @author lgh
 * @date 2023/3/10 10:08
 */
public class TenantLog {


    public static void log(String msg) {
        Log.req("ev=tenant-trace`tenant={}`threadId={}`msg={}", TenantContext.getTenantNoCheck(),
                Thread.currentThread().getId(), msg);
    }


    public static void log(String msg, Object data) {
        Log.req("ev=tenant-trace`tenant={}`threadId={}`data={}", TenantContext.getTenantNoCheck(),
                Thread.currentThread().getId(), msg, data);
    }

}
